//2009/08/23 01:20:27
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class ValueAddedTax
{
public:
    double calculateFinalPrice(string product, int price, vector <string> food)
    {
		set<string> v(food.begin(), food.end());
		if(v.count(product) != 0)
		{
			return 1.10 * price;
		}
		return 1.18 * price;
    }
};
